<template>
  <div class="i-category">
    <div class="i-category-item" v-for="item in subCategory" :key="item.id">
      <img v-lazy="item.image" />
      <div>{{ item.title }}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    subCategory: Array
  }
}
</script>

<style lang="less" scoped>
.i-category {
  background-color: white;
  display: flex;
  flex-wrap: wrap;
  .i-category-item {
    width: calc(100% / 3);
    text-align: center;
    padding: 5px 0;
    font-size: 13px;
    line-height: 35px;
    img {
      width: 80%;
    }
  }
}
</style>
